package com.dhcc.DRGsHosp.web.controller;

import org.openkoala.koala.commons.InvokeResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.dhcc.DRGsHosp.facade.YwcHomeFacade;
import com.dhcc.DRGsHosp.facade.dto.IndexCalDTO;

/**
 * @title		:MysqlHomeController.java
 * @description	:
 * @author		:lileizheng
 * @date		:2015年10月22日
 * @version     :1.0
 * @copyright   :DHCC 2013-2014 
 */
@Controller("drgsHospWebController48")
@RequestMapping("/ywcHome")
public class YwcHomeController {

	@Autowired
	private YwcHomeFacade ywcHomeFacade	;
	
	@ResponseBody
	@RequestMapping(value = "getDepTotalScore")
	public InvokeResult getDepTotalScore(IndexCalDTO dto){
		return ywcHomeFacade.getDepTotalScore(dto);
	}
	/**
	 * 
	 *  getCMIDRGCount.  
	 *  @Description：获取医政首页散点图
	 *  @Author LiuHongjun
	 *  @param dto
	 *  @return 
	 *  @Date:2017年6月16日下午8:53:00
	 */
	@ResponseBody
	@RequestMapping(value = "getCMIDRGCount")
	public InvokeResult getCMIDRGCount(IndexCalDTO dto){
		return ywcHomeFacade.getCMIDRGCount(dto);
	}
	
	@ResponseBody
	@RequestMapping(value = "getDoubleQuotaAnalysis")
	public InvokeResult getDoubleQuotaAnalysis(IndexCalDTO dto){
		return ywcHomeFacade.getDoubleQuotaAnalysis(dto);
	}
	/**
	 * 
	 *  getYwcHospQuota.  
	 *  @Description：按时间段查询首页第二部分图
	 *  @Author LiuHongjun
	 *  @param dto
	 *  @return 
	 *  @Date:2017年8月6日上午10:32:41
	 */
	@ResponseBody
	@RequestMapping(value = "getYwcHospQuota")
	public InvokeResult getYwcHospQuota(IndexCalDTO dto){
		return ywcHomeFacade.getYwcHospQuota(dto);
	}
	
	/**
	 * 
	 *  getMrDate.  
	 *  @Description：获取分组数据年份
	 *  @Author LiuHongjun
	 *  @param dto
	 *  @return 
	 *  @Date:2017年8月7日下午3:15:27
	 */
	@ResponseBody
	@RequestMapping(value = "getMrDate")
	public InvokeResult getMrDate(IndexCalDTO dto){
		return ywcHomeFacade.getMrDate(dto);
	}
}
